<html>
    <head>
        <link rel="stylesheet" href="/assets/css/metro-bootstrap.min.css">
        <link rel="stylesheet" href="/assets/css/metro-bootstrap-responsive.min.css">
        <link rel="stylesheet" href="/assets/css/iconFont.min.css">
        <script src="/assets/js/jquery/jquery.min.js"></script>
        <script src="/assets/js/jquery/jquery.widget.min.js"></script>
        <script src="/assets/js/metro.min.js"></script>
    </head>
    <body class="metro">
		<div class="container">

		<nav class="navigation-bar">
			<nav class="navigation-bar-content">
				<div class="element on-left-more">
					<a class="dropdown-toggle" href="#"><span class="icon-laptop"></span>&nbsp;&nbsp;Saral</a>
					<ul class="dropdown-menu place-left" data-role="dropdown">
						<li><a href="add">Add device</a></li>
						<li><a href="/index.php/allocations/add">Add allocations</a></li>
						<li><a href="#">Reports</a></li>
					</ul>
				</div>
		 
				<span class="element-divider"></span>
		 
				<div class="element place-right on-left-more">
					<a class="dropdown-toggle" href="#">
						<span class="icon-user on-left-more"></span>vivekpat@thoughtworks.com
					</a>
					<ul class="dropdown-menu place-right" data-role="dropdown">
						<li><a href="/index.php/usercontroller/validateuser">My dashboard</a></li>
						<li><a href="#">My profile</a></li>
						<li><a href="#">Sign out</a></li>
					</ul>
				</div>
				<span class="element-divider place-right"></span>

				<div class="element place-right input-element">
					<form>
						<div class="input-control text">
							<input type="text" placeholder="Search...">
							<button class="btn-search"></button>
						</div>
					</form>
				</div>				
				
			</nav>
		</nav>
			
			<div class="grid show-grid">
				<div class="row">
					<div class="span12">
						<h1><a href="/index.php/devices/view"><i class="icon-arrow-left-3 fg-darker smaller"></i>&nbsp;&nbsp;</a><?php echo $datareceived['serail_id']?></h1>
						<div class="row">&nbsp;</div>
						<div class="row">
							<div class="span6"><h4><?php echo $datareceived['type']?></h4></div>
							<div class="span6 text-right">
							<form action="viewind" method="post">
								<input type="hidden" name="d_id" value="<?php echo $datareceived['id']?>" />
							<i class="icon-arrow-right-3 on-left"></i><input type="submit"value="View"/>
							</form>
							</div>
						<div class="row">&nbsp;</div>
						<div class="row">
							<div class="span4">
								<img src="/assets/images/apple.png">
							</div>
							<div class="span8">
								<div class="notice marker-on-bottom bg-green fg-white">The device information updated successfully.</div>									
								<div class="row">&nbsp;</div>
								<fieldset>
									<form action="update" method="post">
										<label>Serial No</label>
										<div class="input-control text" data-role="input-control"><input type="text" placeholder="type serial no" autofocus="" name="serial_id" value="<?php echo $datareceived['serail_id']?>" readonly></div>
										
										<label>Device ID</label>
										<div class="input-control text" data-role="input-control"><input type="text" placeholder="type serial no" autofocus="" name="device_id" value="<?php echo $datareceived['id']?>" readonly></div>
										

										<label>Type</label>
										<div class="input-control select" >
											<select name="type" >
												<option><?php echo $datareceived['type']?></option>
												<option value="MacBook Pro 15" Retina">MacBook Pro 15" Retina</option>
												<option value="MacBook Pro 13" Retina">MacBook Pro 13" Retina</option>
												<option value="MacBook Air 13"">MacBook Air 13"</option>
												<option value="MacBook Air 11"">MacBook Air 11"</option>
												<option value="Dell XPS 13"">Dell XPS 13"</option>
											</select>
										</div>
										
										<label>Invoice ID</label>
										<div class="input-control text" data-role="input-control"><input type="text" name="invoice_id" placeholder="type invoice id" autofocus="" name="username" value="<?php echo $datareceived['invoice_id']?>"><button class="btn-clear" tabindex="1" type="button"></button></div>

										<label>Purchase date</label>
										<div class="input-control text" id="purchasedate">
											<input type="text" name="purchase_date" value="<?php echo $datareceived['purchase_date']?>">
											<button class="btn-date"></button>
										</div>
										<script>
											$("#purchasedate").datepicker();
										</script>

										<label>Replacement Date</label>
										<div class="input-control text" id="rdate">
											<input type="text" name="replacement_date" value="<?php echo $datareceived['replacement_date']?>">
											<button class="btn-date"></button>
										</div>
										<script>
											$("#rdate").datepicker();
										</script>

										<label>Region</label>
										<div class="input-control select" >
											<select name="region">
												<option><?php echo $datareceived['region']?></option>
												<option value="Australia">Australia</option>
												<option value="China">China</option>
												<option value="India">India</option>
											</select>
										</div>

										<label>Location</label>
										<div class="input-control select" >
											<select name="location">
												<option><?php echo $datareceived['location']?></option>
												<option value="Melbourne">Melbourne</option>
												<option value="Pune">Pune</option>
												<option value="Beijing">Beijing</option>
											</select>
										</div>


										<label>Warranty expiry</label>
										<div class="input-control text" id="warrantyexpiry">
											<input type="text" name="waranty_expiry" value="<?php echo $datareceived['waranty_expiry']?>">
											<button class="btn-date"></button>
										</div>
										<script>
											$("#warrantyexpiry").datepicker();
										</script>

										<label>Waranty Years</label>
										<div class="input-control text" data-role="input-control"><input type="text" name="waranty_years" placeholder="Waranty Years" autofocus="" name="username" value="<?php echo $datareceived['waranty_years']?>"><button class="btn-clear" tabindex="1" type="button"></button></div>


										<label>Status</label>
										<div class="input-control select" >
											<select name="status" >
												<option><?php echo $datareceived['status']?></option>
												<option value="Allocated">Allocated</option>
												<option value="In Stock">In Stock</option>
												<option value="Dead">Dead</option>
											</select>
										</div>


										<label>Processor</label>
										<div class="input-control text" data-role="input-control"><input type="text" name="processor" placeholder="type email" autofocus="" name="username" value="<?php echo $datareceived['processor']?>"><button class="btn-clear" tabindex="1" type="button"></button></div>

										<label>Memory</label>
										<div class="input-control select">
											<select name="memory">
												<option><?php echo $datareceived['memory']?></option>
												<option value="2GB">2 GB</option>
												<option value="4GB">4 GB</option>
												<option value="8GB">8 GB</option>
												<option value="16GB">16 GB</option>
											</select>
										</div>

										<label>Disk</label>
										<div class="input-control select">
											<select name="disk">
												<option><?php echo $datareceived['disk']?></option>
												<option  value="128GB">128 GB</option>
												<option  value="256GB">256 GB</option>
												<option  value="512GB">512 GB</option>
												<option  value="1024GB">1024 GB</option>
											</select>
										</div>
										<label>Comments</label>
										<div class="input-control text" data-role="input-control"><input type="text" name="comments" placeholder="Enter Comments" autofocus=""  value="<?php echo $datareceived['comments']?>"><button class="btn-clear" tabindex="1" type="button"></button></div>


										<label>&nbsp;</label>
										<button type="submit" class="large info">Update </button>
										<button type="button" class="large default right">Cancel </span></button>
									</form>
								</fieldset>	
							</div>
						</div>
												
						
					</div>					
				</div>
							
				
			</div>		
			
		</div>		
		
    </body>
</html>